/*
 * @Author: Jimmy
 * @LastModifiedBy: Jimmy
 * @Date: 2024-02-24 13:31:13
 * @LastEditTime: 2024-02-25 13:55:30
 * @FilePath: /react-vite-admin/src/router/router.types.ts
 */
//路由菜单配置
export type RouteObject = {
    children?: RouteObject[]
    label?:string
    key?:string
    element?: React.ReactNode
    path?: string
    meta?: MetaProps
}

// 路由菜单补充信息配置
export type MetaProps = {
    //是否需要验证权限
    isAuth?: boolean
    title: string
    key?: string
}
//路由信息
export type IRoute = {
    name?: string;
    path: string;
    meta?: any;
    icon?:any,
    key?: string;
    type?:string;
    label?: string;
    extendone?: any;
    hidden?: boolean | undefined;
    redirect?: string;
    children?: Array<any> | null;
    element?: React.ReactNode;
    menuType?: string;
    menutype?: string;
    menuName?: string;
}